const options = {
  title: {
    text: '文化程度统计',
    left: 'center'
  },
  legend: {
    data: ['大专', '本科', '研究生', '博士'], // 设置图例名称
    bottom: 0
  },
  tooltip: {
    show: true,
  },
  xAxis: {
    type: 'category',
    data: tableData.header,
  },
  yAxis: [{
    type: 'value',
    name: '人数',
    min: 0,
    max: maxData,
    position: 'left',
  }],
  series: [{
    name: '大专',
    type: 'bar',
    data: [4, 6, 2, 0],
    itemStyle: {
      color: createGradient('#91a8d5', '#345598'),
    },
  }, {
    name: '本科',
    type: 'bar',
    data: [4, 3, 3, 3],
    itemStyle: {
      color: createGradient('#5379c3', '#9cb2dd'),
    },
  }, {
    name: '研究生',
    type: 'bar',
    data: [5, 4, 8, 8],
    itemStyle: {
      color: createGradient('#8aa0d8', '#adbce4'),
    },
  }, {
    name: '博士',
    type: 'bar',
    data: tableData.data.values[3],
    itemStyle: {
      color: createGradient('#b9c3e5', '#d0d7ee'),
    },
  }],
}